package de.windeln.marketing.promotion;

import java.util.List;
import java.util.Map;

public class DefaultPromotionService implements PromotionService{

	private PromotionMapper promotionMapper;

	@Override
	public List<Map<String, Object>> fetchAllPromotions() {
		return promotionMapper.fetchPromotions();
	}
	
	@Override
	public List<Map<String, Object>> insertNewPromotion(){
		return promotionMapper.insertNewPromotion();
	}

	
	public void setPromotionMapper(PromotionMapper promotionMapper) {
		this.promotionMapper = promotionMapper;
	}
	
	
}
